//
// Created by lwj66 on 24-6-7.
//

#ifndef TEST_6_7_PHONELIST_H
#define TEST_6_7_PHONELIST_H

#include "stdio.h"
#include "stdlib.h"
#include "assert.h"

#define INIT_COUNT 4

typedef struct contactInfo
{
    char name[50];
    char tel_num[11];
    char gender[10];
    char address[100];
}Info;

enum
{
    EXIT,
    ADD,
    DEL,
    FIND,
    MODIFY,
    SHOW,
    MOVE
};

typedef struct seqList
{
    Info* info;
    int size;
    int capacity;
}SL;

void menu();    //菜单
void pick(SL* ps);

void infoInit(SL* ps);    //初始化

void infoGrow(SL* ps);  //扩容

//增删查改等
void infoAdd(SL* ps);
void infoDel(SL* ps);
void infoFind(SL* ps);
void infoModify(SL* ps);
void infoMove(SL* ps);
void infoShow(SL* ps);

void infoClear(SL* ps);

#endif//TEST_6_7_PHONELIST_H
